#ifndef CUDPSERVERTHREAD_H
#define CUDPSERVERTHREAD_H

#include "cgloble.h"
#include "comhead.h"

#define SERVER_PORT 2022
#define READ_BUFF_LEN 1024
#define FLAG_BUFF_LEN 1

#define R_IMAGE_LINE  640
#define R_IMAGE_ROW   480
#define CHANNEL_NUM   1
#define IMAGE_SIZE R_IMAGE_LINE*R_IMAGE_ROW*CHANNEL_NUM


class CUdpServerThread : public SimpleThread
{
public:
    CUdpServerThread();
    virtual int Run();

    void handle_udp_msg(int fd);

public:
    CGloble *mGPara;
};

#endif // CUDPSERVERTHREAD_H
